#!/bin/bash

sudo pip3 install statsmodels
sudo pip3 install scipy

difference_prop()
{
	python3 diff_prop.py -csv1 $1$2 -csv2 $1$3 -txt $1$4_diff -y "1720 1920 50"
}

WORKING_DIR=$(pwd)

echo 'Running difference in proportions tests.'

danish=( '/danish_class' '/danish_education' '/danish_feelings' '/danish_give' '/danish_govern' '/danish_individualism' )
british=( '/british_class' '/british_education' '/british_feelings' '/british_give' '/british_govern' '/british_individualism')
names=( '/class' '/education' '/feelings' '/give' '/govern' '/individualism')

for i in $(seq 0 5 )
do
	:
	difference_prop $WORKING_DIR ${danish[i]} ${british[i]} ${names[i]}
done
